package com.ecust.Service.User.Impl;

import com.ecust.Dao.User.UserDao;
import com.ecust.Entity.User.User;
import com.ecust.Service.User.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

/**
 * Created by admin on 2017/4/29.
 * @Description: User 服务类的实现
 * @author  mengweiqiang
 *
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    public UserDao userDao;

    public boolean getFindUser(String UserID,String UserPwd,String RoleID)
    {
        return userDao.FindUser(UserID,UserPwd,RoleID);
    }

    public List<User> getFindUserInfo(String UserID)
    {
        return userDao.FindUserInfo(UserID);
    }

    public  boolean getCheckUserPassword(String UserID,String UserPwd)
    {
        return  userDao.CheckUserPassword(UserID,UserPwd);
    }

    public  boolean getChangeUserPassword(String UserID,String NewPassword)
    {
        return userDao.ChangeUserPassword(UserID,NewPassword);
    }

    public boolean getChangeUserInfo(String UserID, String UserName, String Name, int Gender, Date DateOfBirth, String TelPhone, String Email, String Company)
    {
        return userDao.ChangeUserInfo(UserID,UserName,Name,Gender,DateOfBirth,TelPhone,Email,Company);
    }

}
